


var pushFormatter = function(value,row,index){
        return ['<a href="javascript:void(0)" class="delete">删除</a>'+'&nbsp&nbsp&nbsp'+'<a href="javascript:void(0)" ' +
        'class="detail">查看详情</a>'].join('');
}


window.pushEvents={
    'click .delete':function(e,value,row,index){

        comment.showOperationTips("确认要删除该推送消息？",function(){
            $.post($().AbsUrlParse('/web/push/deletePushById'),{
                id: value
            }, function(data){
                if(data.state==true){
                    if(data.res.code==40000){
                        hint("删除推送消息成功");
                        var table = $("#table");
                        table.bootstrapTable('refresh');
                    }else{
                        hint(data.res.msg);
                    }
                }else{
                    hint(data.msg);
                }
            });
        });
    },

    'click .detail':function(e,value,row,index){
        showModel("pushDetail",function(){
            setRowToFrm("pushDetailForm",row)
        });
    }
}